#!/bin/sh


printf "paramer number is: %d\n" $#

if read -t 3 -n 1 -p "please input [Y/N]:" name; then
    case $name in
        Y|y)
            printf "\nyes\n"
            ;;
        N|n)
            printf "\nno\n"
            ;;
        *)
            printf "\nplease input Y/N\n"
            return 1
            ;;
    esac

else
    printf "\ntoo slow\n"
fi

read -t 3 -p "input:" name
printf "\nread return result is:%d\n" $?

read -s -t 3 -p "your passwd:" pass
printf "\nyour pass word is:%s\n" $pass



